package com.university.report.model.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.sql.Timestamp;

/**
 * @ClassName health_report
 * @Author Jinondo
 * @Date 2021/6/9 20:15
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class BaseEntity {
    /**
     * 版本
     */
    @Version
    private Integer version;

    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;

    @TableLogic
    private Integer deleted;
}
